package com.tvein.sanguo.zone.view
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator.FlashMediator;
	//custom
	import com.tvein.sanguo.Zone;
	import com.tvein.sanguo.swc.zone.ZoneShell;
//
	public class ZoneMediator extends FlashMediator
	{
		static public const NAME : String = "ZoneMediator";
		
		public function ZoneMediator(viewComponent:Object)
		{
			super(NAME, viewComponent);
		}
		
		public function get zone() : Zone
		{
			return viewComponent as Zone;
		}
		
		//Custom
		public var zoneShell:ZoneShell;
		
		override public function onRegister() : void
		{
			zone.visible = false;
			
			zoneShell = new ZoneShell();
			
			zoneShell.y = 10;
			
			zone.addChild(zoneShell);
		}
	}
}